//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package ciicos.point.result;

import java.util.Arrays;
import java.util.List;

public class ScadaResult {
    private Integer code;
    private String message;
    private Integer[] KIND;
    private List<ScadaEntity> items;

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public Integer[] getKIND() {
        return this.KIND;
    }

    public List<ScadaEntity> getItems() {
        return this.items;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setKIND(Integer[] KIND) {
        this.KIND = KIND;
    }

    public void setItems(List<ScadaEntity> items) {
        this.items = items;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ScadaResult)) {
            return false;
        } else {
            ScadaResult other = (ScadaResult)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$code = this.getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }

                Object this$message = this.getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                if (!Arrays.deepEquals(this.getKIND(), other.getKIND())) {
                    return false;
                } else {
                    Object this$items = this.getItems();
                    Object other$items = other.getItems();
                    if (this$items == null) {
                        if (other$items != null) {
                            return false;
                        }
                    } else if (!this$items.equals(other$items)) {
                        return false;
                    }

                    return true;
                }
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof ScadaResult;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $code = this.getCode();
        result = result * 59 + ($code == null ? 43 : $code.hashCode());
        Object $message = this.getMessage();
        result = result * 59 + ($message == null ? 43 : $message.hashCode());
        result = result * 59 + Arrays.deepHashCode(this.getKIND());
        Object $items = this.getItems();
        result = result * 59 + ($items == null ? 43 : $items.hashCode());
        return result;
    }

    public String toString() {
        return "ScadaResult(code=" + this.getCode() + ", message=" + this.getMessage() + ", KIND=" + Arrays.deepToString(this.getKIND()) + ", items=" + this.getItems() + ")";
    }
}
